
package requests

import (
	"github.com/goravel/framework/contracts/http"
	"github.com/goravel/framework/contracts/validation"
)

type LiveRoomGoodRequest struct {

	LiveRoomId string `json:"live_room_id" form:"live_room_id"`

	LiveGoodsId string `json:"live_goods_id" form:"live_goods_id"`

}

func (r *LiveRoomGoodRequest) Authorize(ctx http.Context) error {
	return nil
}

func (r *LiveRoomGoodRequest) Rules(ctx http.Context) map[string]string {
	return map[string]string{

		"live_room_id": "required",

		"live_goods_id": "required",

	}
}

func (r *LiveRoomGoodRequest) Messages(ctx http.Context) map[string]string {
	return map[string]string{}
}

func (r *LiveRoomGoodRequest) Attributes(ctx http.Context) map[string]string {
	return map[string]string{}
}

func (r *LiveRoomGoodRequest) PrepareForValidation(ctx http.Context, data validation.Data) error {
	return nil
}
